package com.atguigu.demo.model;

import lombok.Data;
import org.bson.types.ObjectId;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * @author: atguigu
 * @create: 2024-03-01 14:06
 */
@Data
@Document(collection = "user")
public class User {

    @Id
    private ObjectId id;

    private String name;

    private String address;

    private String email;

    private Integer age;

}
